package com.soladhoc.webapp.annonces.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class AnnoncesView extends Composite implements HasText {
	
	@UiField Button button;
	@UiField Label announceTitle;
	@UiField Label textOfAnnonce;
	
	private static AnnoncesViewUiBinder uiBinder = GWT
			.create(AnnoncesViewUiBinder.class);

	interface AnnoncesViewUiBinder extends UiBinder<Widget, AnnoncesView> {
	}

	public AnnoncesView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public AnnoncesView(String title) {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public void setText(String text) {
		button.setText(text);
	}

	public String getText() {
		return button.getText();
	}

}
